package com.example.demo.service;

import com.example.demo.pojo.Address;

import java.util.List;

public interface AddressService {

    //通过用户id查询收货地址
    List<Address> selectByUserId(int userid);

    //新增收货地址
    int insert(Address address);

    //删除收货地址
    int delectByAdddress(Integer id);

    //修改收货地址
    int updateByAddress(Address address);

    //通过默认状态查询
    List<Address> selectByisdefault(int isdefault);
}
